﻿#ifndef POSTCOMMAND_CMDSETHEATMAPVARIABLEAXISCHANGED_H
#define POSTCOMMAND_CMDSETHEATMAPVARIABLEAXISCHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdSetHeatMapVariableAxisChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdSetHeatMapVariableAxisChanged();
        ~CmdSetHeatMapVariableAxisChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setHeatMapVariableAxisChanged(int windowId, int variableAxisIndex);

    private:
        int m_windowId;
        int m_variableAxisIndex;
    };
} // namespace PostCommand

#endif
